2. Field1 means and variances: space, time, spacetime
The GRAND (space+time) mean of my x and y: 239.973 W/m2 and 4.7379 (mm/d).
The GRAND (space+time) varianceof my x and y: 551.1539 (W/m2)^2 and 12.6278 (mm/d)^2.
For OLR, single precision gave me 551.1518 in Matlab or 550.922 in IDL. Better use double!
(I made var_n.pro force double precision now)
The GRAND standard deviations are: 23.4766 W/m2, 3.5536 mm/d
The SPATIAL variance of my TIME MEAN longitude section is: 333.94925 (W/m2)^2 and 5.7562 (mm/d)^2
The TEMPORAL variance of my LONGITUDE MEAN time series is: 23.780020 (W/m2)^2 and 0.94054618 (mm/d)^2
3. (the assignment part)
Confirm that the time mean of the anomalies as defined above is 0. Yes
Is the spatial mean of the anomalies (as defined above) 0?
No
Is it the same as the time series of the spatial mean of the raw data? Or is it a new thing?
Its graph (a time series) looks kind of like the spatial mean of x, but it is not quite the same. For one thing the grand mean of anomx is 0 while the grand mean of x is not. But even accounting for this simple offset, a time series plot of the difference is a piecewise constant curve that varies from one year to the next. Some students will upload and show plots that make this clear, and hopefully explain it better with math in some notation (maybe handwritten on the board) that helps us see it!
4. Further decomposition of anomx by scale (using rebinning).
What space and time scales (units: degrees and months) have the most variance in your anomx field?
olr_rebintimelon_variancedist.gif shows that the total variance decreases faster with time rebinning (averaging) than space rebinning, indicating more small-scale structure in time than space.
Spatial averaging (2,4,8 rebin factors) doesn't destroy variance as quickly because the structure in space is pretty large scale. But then, suddenly, rebinning by 16 or 48 in longitude suddenly reduces variance a lot, because there are compensating +/- anomalies across longitudes.
The above agrees with the structure seen in the raw data for olr anomalies: it is pretty large scale in space. [[file/view/olr_timeanomalies_lonanomalies.gif|olr_timeanomalies_lonanomalies.gif]]
Create a contour plot of anomx -- can you see these "characteristic" scales by eye? Annotate your anomx plot with some ovals of about the right size (in powerpoint may be easiest), and put a few of these ovals in regions where you think you can see structures of about the right scales. I am looking for good eyeball judgement here.
Here's a figure illustrating why the variance drops most steeply from 16 to 48 rebinning factor in time: basically, 48 month averaging kills ENSO variance, while 16 month averaging doesn't. olr_rebintimelon_1648check.gif
Here's a figure illustrating why the variance drops most steeply from 16 to 48 rebinning factor in time: basically, 48 month averaging kills ENSO variance, while 16 month averaging doesn't. olr_rebintimelon_1648check2.gif
Take the time series at grid point 85 (the central Pacific) and lag-correlate it with the time series at all other longitudes. Plot the result as a contoured lag vs. longitude diagram. What does this show you that space and time autocorrelations alone didn't?
6. Cross-correlation between your 2 variables
Scatter plot your x and y arrays (all values). Is there a relationship?
What is the correlation coefficient implied by this all-space-and-time=points scatter plot? rho = cov(x(:),y(:)) / sqrt( cov(x(:)) * cov(x(:)) ) rho = correlate(x,y)
How much of the variance of y can be 'explained' by linear regression on x (y = mx + b)? How does this relate to rho? What is m?
How much of the variance of x can be 'explained' by linear regression on variable y? (x = nx + a)? How does this relate to rho? What is n?
Plot the temporal correlation between your x and variables as a function of longitude. Interpret the results.
Plot the longitudinal correlation as a function of time. Interpret the results.
Plot the cross correlation between x and y for the east Pacific and South American longitudes from problem 5.1 above. This is the correlation between the 2 variables as a function of time lag. Interpret the results. Matlab: xcov() or xcorr()IDL: C-correlate()
Extra credit:
Use 1-month lagged correlations and cross correlations like the above to develop a 2-term formula like
y_fcst_EPAC(t) = c1 x(t-1) + c2 y(t-1)
which gives the best 1-month forecasts of eastern Pacific y you can make, given your x and y data. (multiple regression)
OLR and precip
Brian Map2. Field1 means and variances: space, time, spacetime
3. (the assignment part)
var( climy12(:),1) 7.0662 (precip)
var( anomy(:),1) 5.5616
4. Further decomposition of anomx by scale (using rebinning).
140.5907 138.5684 134.0453 124.3102 103.1921 29.0789
111.8484 110.6262 107.7468 101.2612 86.3631 22.2076
90.3986 89.6423 87.7923 83.4635 72.0277 16.7211
68.5817 68.0969 66.8513 63.8972 55.5564 12.5901
37.5201 37.2371 36.5120 34.8221 29.8212 7.6441
11.9013 11.8029 11.5493 10.8537 9.1045 2.7723
==
==
6. Covariance matrix stuff
HW3_olr_precip_mapes.m has all my matlab code, including the stuff that makes these Matlab pictures:
OLR_anoms_covar_correl.BEM.Matlab.png
OLR.lagregression.BEM.jpg
UNDER CONSTRUCTION - OLD STUFF - IGNORE FOR NOW
5. Autocorrelation and integral scales
6. Cross-correlation between your 2 variables
Extra credit: